<template>
  <div class="movie">
    <h1>我需要的电影列表是长度是3-7之间的</h1>
    <ul>
      <li v-for="item in myMovieList" :key="item.tvId">{{item.albumName}}</li>
    </ul>
    <hr/>
    <h1>传参的getters</h1>
    <ul>
      <li v-for="item in yourMovieList" :key="item.tvId">{{item.albumName}}</li>
    </ul>
    
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
    name:"Movie",
    computed:{
      ...mapGetters("count",["myMovieList"]),
      yourMovieList(){
        return this.$store.getters["count/yourMovieList"]({
          start:5,
          end:10
        })
      }
    }
   
}
</script>

<style>
.movie{
    background-color:rgb(144, 247, 27);
    text-align: center;
}
</style>